package com.example.pm.ending.server.module.admin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AddNewAdminEntityDTO implements Serializable {


    @ApiModelProperty(value = "管理员用户名",name = "username",required = true)
    @NotNull
    private String username;
    @ApiModelProperty(value = "管理员密码",name = "password",required = true)
    @NotNull
    private String password;
    @ApiModelProperty(value = "管理员头像",name = "avatar",example = "https://imgavater.ui.cn/avatar/big.png")
    @NotNull
    private String avatar;
    @ApiModelProperty(value = "管理员昵称",name = "nickname")
    @NotNull
    private String nickname;
    @ApiModelProperty(value = "管理员手机号",name = "phone")
    @NotNull
    private String phone;
    @ApiModelProperty(value = "管理员角色id",name = "roleId",required = true)
    @NotNull
//    private Long roleId;
    private Long[] roleIds;
    @ApiModelProperty(value = "创建时间",name = "gmtCreate")
    private LocalDateTime gmtCreate;

}
